package com.library.management.domain.borrow;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("sys_borrow")
public class Borrow {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId; // 借阅用户ID
    
    private Long bookId; // 借阅图书ID
    
    private LocalDateTime borrowDate; // 借阅日期
    
    private LocalDateTime returnDate; // 应还日期
    
    private LocalDateTime actualReturnDate; // 实际归还日期
    
    private Integer status; // 状态：1-借阅中 2-已归还 3-逾期 4-丢失
    
    private String remarks; // 备注
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
} 